Skip to content

[3.15] gh-150052: Resolve un-loaded lazily loaded submodules via module.__getattr__ instead of publishing lazy values#150055

Merged
pablogsal merged 3 commits into
python:3.15from
DinoV:modules_resolve
May 19, 2026
Merged

[3.15] gh-150052: Resolve un-loaded lazily loaded submodules via module.__getattr__ instead of publishing lazy values#150055
pablogsal merged 3 commits into
python:3.15from
DinoV:modules_resolve

Conversation

@DinoV
Copy link
Copy Markdown
Contributor

@DinoV DinoV commented May 19, 2026

Instead of publishing the value update _Py_module_getattro_impl to return these values. This is maybe more in the spirit of the changes we've made to push things into the module object in general. We'd publish nothing into the module but it would magically become available if we resolve it and then presumably we'd publish it into the module.

@DinoV DinoV force-pushed the modules_resolve branch from 93b1312 to e757e35 Compare May 19, 2026 05:12
@DinoV DinoV changed the title [3.15] gh-150052: Modules resolve [3.15] gh-150052: Resolve un-loaded lazily loaded submodules via module.__getattr__ instead of publishing lazy values May 19, 2026
@DinoV DinoV marked this pull request as ready for review May 19, 2026 06:21
@DinoV DinoV force-pushed the modules_resolve branch from 8eb8dce to e757e35 Compare May 19, 2026 16:53
@pablogsal pablogsal enabled auto-merge (squash) May 19, 2026 21:23
@pablogsal pablogsal merged commit 6847f4b into python:3.15 May 19, 2026
141 of 142 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants